package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.math.BigDecimal;

/**
 * Created by itchenqi on 2018/1/25 0025.
 * description：物业缴费的大列表界面内容
 */

public class PropertyPaymentBean implements Parcelable {

    /**
     * 缴费的单号的id信息
     */
    private String housePaymentId;

    /**
     * 小区名称
     */
    private String communityName;
    /**
     * 费用产生的结束时间
     */
    private String endTime;
    /**
     * 房屋编号
     */
    private String houseNo;

    /**
     * 缴费金额
     */
    private BigDecimal payAmount;

    /**
     * 费用名称
     */
    private String paymentName;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 费用产生的开始时间
     */
    private String startTime;

    /**
     * 缴费详情id
     */
    private String receiptDetailId;

    /**
     * 缴费单号
     */
    private String receiptNo;

    /**
     * 缴费总金额
     */
    private BigDecimal finalAmount;

    //携带缴费方式
    private String payTypeInfo;

    private String payTime;


    //2018年08月09日去掉全选功能
    /**
     * 列表是否被选中0是不选中，1是选中
     */
    private int isChecked = 0;//原始代码是0.后期更改为1然后又改回来


    public String getPayTypeInfo() {
        return payTypeInfo;
    }

    public void setPayTypeInfo(String payTypeInfo) {
        this.payTypeInfo = payTypeInfo;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getReceiptDetailId() {
        return receiptDetailId;
    }

    public void setReceiptDetailId(String receiptDetailId) {
        this.receiptDetailId = receiptDetailId;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public BigDecimal getFinalAmount() {
        return finalAmount;
    }

    public void setFinalAmount(BigDecimal finalAmount) {
        this.finalAmount = finalAmount;
    }

    public String getHousePaymentId() {
        return housePaymentId;
    }

    public void setHousePaymentId(String housePaymentId) {
        this.housePaymentId = housePaymentId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getHouseNo() {
        return houseNo;
    }

    public void setHouseNo(String houseNo) {
        this.houseNo = houseNo;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public String getPaymentName() {
        return paymentName;
    }

    public void setPaymentName(String paymentName) {
        this.paymentName = paymentName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getChecked() {
        return isChecked;
    }

    public void setChecked(int isChecked) {
        this.isChecked = isChecked;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.housePaymentId);
        dest.writeString(this.communityName);
        dest.writeString(this.endTime);
        dest.writeString(this.houseNo);
        dest.writeSerializable(this.payAmount);
        dest.writeString(this.paymentName);
        dest.writeString(this.remark);
        dest.writeString(this.startTime);
        dest.writeString(this.receiptDetailId);
        dest.writeString(this.receiptNo);
        dest.writeSerializable(this.finalAmount);
        dest.writeString(this.payTypeInfo);
        dest.writeString(this.payTime);
        dest.writeInt(this.isChecked);
    }

    public PropertyPaymentBean() {
    }

    protected PropertyPaymentBean(Parcel in) {
        this.housePaymentId = in.readString();
        this.communityName = in.readString();
        this.endTime = in.readString();
        this.houseNo = in.readString();
        this.payAmount = (BigDecimal) in.readSerializable();
        this.paymentName = in.readString();
        this.remark = in.readString();
        this.startTime = in.readString();
        this.receiptDetailId = in.readString();
        this.receiptNo = in.readString();
        this.finalAmount = (BigDecimal) in.readSerializable();
        this.payTypeInfo = in.readString();
        this.payTime = in.readString();
        this.isChecked = in.readInt();
    }

    public static final Creator<PropertyPaymentBean> CREATOR = new Creator<PropertyPaymentBean>() {
        @Override
        public PropertyPaymentBean createFromParcel(Parcel source) {
            return new PropertyPaymentBean(source);
        }

        @Override
        public PropertyPaymentBean[] newArray(int size) {
            return new PropertyPaymentBean[size];
        }
    };
}
